package com.atguigu.gulimall.product.feign.fallback;


import com.atguigu.common.exception.BizCodeEnum;
import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.feign.ProductSeckillFeignService;
import org.springframework.stereotype.Component;

@Component
public class SecKillFeignServiceFalback implements ProductSeckillFeignService {

    @Override
    public R getSeckillSkuInfo(Long skuId) {
        System.out.println("触发熔断===============");
        return R.error(BizCodeEnum.TOO_MANY_REQUEST.getCode(), BizCodeEnum.TOO_MANY_REQUEST.getMsg());
    }
}
